// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:53:52

// Source File Name:   ih.java

package com.zelix;

import java.util.*;

//            yc, ht, it, ch,
//            fh, tb, re, lt, 
//            mt, px, qy, dd

final class ih {

    private mt a[];
    private ht b;
    dd c;
    private it d;
    re e;
    private boolean m;
    private ch f;
    Hashtable g;
    Hashtable h;
    Hashtable i;
    Hashtable j;
    private Hashtable k;
    private HashSet l;
    private static String z[];

    ih(dd dd, re re1, boolean flag, it it1, mt amt[], ht ht1, Hashtable hashtable,
       Hashtable hashtable1) {
        g = new Hashtable();
        h = new Hashtable();
        i = new Hashtable();
        l = new HashSet();
        a = amt;
        e = re1;
        m = flag;
        b = ht1;
        d = it1;
        c = dd;
        j = hashtable;
        k = hashtable1;
    }

    void a(ch ch1, Hashtable hashtable, Hashtable hashtable1, qy qy1)
            throws tb {
        int i1;
        int j1;
        int k1;
        int l1;
        i1 = ch1.b();
        j1 = ch1.a();
        f = ch1;
        a(qy1);
        k1 = a.length;
        for (l1 = 0; l1 < k1; l1++) {
            i.put(a[l1].j(), a[l1]);
            if (c.a(a[l1])) {
                String s = a[l1].j();
                g.put(a[l1], a[l1]);
            }
        }
        Enumeration enumeration = g.keys();
        while (enumeration.hasMoreElements()) {
            mt mt1 = (mt) enumeration.nextElement();
            fh fh1 = fh.b(mt1.j());
            fh1.a(ch1, j, k, h);
        }
        Vector vector;
        int i2;
        vector = b.i();
        if (System.getProperty(z[1], "").equals(z[0]))
            Collections.shuffle(vector, new Random(px.b()));
        for (i2 = 0; i2 < vector.size(); i2++) {
            fh fh2 = (fh) vector.elementAt(i2);
            fh2.a(ch1, e, j, k, g, l);
        }
        int j2 = l.size();
//_L14:
        int k2;
        Iterator iterator;
        while (j2 > 0) {
            k2 = j2;
            iterator = l.iterator();
//        if(!flag1) goto _L11; else goto _L10
//_L10:
            while (iterator.hasNext()) {
                fh fh3 = (fh) iterator.next();
                boolean flag = fh3.a(ch1, j, k, iterator);
                if (flag)
                    j2 = l.size();
            }
            if (j2 == k2)
                break;
//_L11:
//        if(iterator.hasNext()) goto _L10; else goto _L12
//_L12:
        }
//        if(j2 > 0 && j2 != k2) goto _L14; else goto _L13
//        _L13:
        iterator = l.iterator();
//        if(!flag1) goto _L16; else goto _L15
//_L15:
        while (iterator.hasNext()) {
            fh fh4 = (fh) iterator.next();
            fh4.a(ch1, j, k);
        }
//_L16:
//        if(iterator.hasNext()) goto _L15; else goto _L17
//_L17:
        for (int l2 = 0; l2 < a.length; l2++) {
//        if(!flag1) goto _L19; else goto _L18
//_L18:
            String s1 = a[l2].j();
            String s2 = (String) j.get(s1);
            if (s2 != null)
                a[l2].a(s2, hashtable);
        }
//        l2++;
//_L19:
//        if(l2 >= a.length)
//        {
        d.a(i1, j1, j, hashtable1);
        d.y();
//            return;
//        }
//        if(true) goto _L18; else goto _L20
//_L20:
    }

    private void a(qy qy1) {
        ArrayList arraylist;
        int i1;
        int j1;
//        boolean flag;
//        flag = tb.b;
        if (e == null)
            return;
        arraylist = e.e();
        i1 = arraylist.size();
        for (j1 = 0; j1 < i1; j1++) {
//        if(!flag) goto _L2; else goto _L1
//_L1:
            String s;
            String s1;
            ArrayList arraylist1;
            int k1;
            s = (String) arraylist.get(j1);
            if (c.c(s) && e.r(s))
                continue;
            s1 = e.f(s);
            if (s1 != null) {
                fh fh1 = fh.b(s1);
                if (fh1 != null && !fh1.w()) {
                    e.d("\"" + lt.a(s1) + z[4]);
                }
            } else
                s1 = s;
            if (qy1 != null && qy1.b(s1)) {
                Vector vector = qy1.d(s1);
                String s3 = (String) vector.get(0);
                e.d(z[9] + lt.a(s) + z[2] + lt.a(s1) + z[10] + lt.a(s3) + z[7] + lt.a(s1) + "\"");
            }
            String s2 = lt.f(s);
            arraylist1 = f.a(s1, s2);
            for (k1 = 0; k1 < arraylist1.size(); k1++) {
//        if(!flag) goto _L4; else goto _L3
//_L3:
                String s4 = (String) arraylist1.get(k1);
                if (!s4.equals(s) && fh.c(s4) && c.c(s4)) {
                    String s5 = e.m(s4) ? "" : z[6];
                    e.d(z[9] + lt.a(s) + z[2] + lt.a(s1) + z[5] + s5 + z[8] + lt.a(s4) + z[3] + lt.a(s1) + "\"");
                }
            }
//        k1++;
//_L4:
//        if(k1 < arraylist1.size()) goto _L3; else goto _L5
        }
//_L5:
//        j1++;
//_L2:
//        if(j1 >= i1)
//            return;
//        if(true) goto _L1; else goto _L6
//_L6:
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 6;
                    break;
                case 1:
                    key = 105;
                    break;
                case 2:
                    key = 60;
                    break;
                case 3:
                    key = 7;
                    break;
                default:
                    key = 73;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }


    static {
        String as[];
        as = new String[11];
        as[0] = "r\033Ib";
        as[1] = "\\\"qX\033G'xH\004O3yX\006D/iT\nG=uH\007";
        as[2] = "$IUtik\bLw,bIHhi$";
        as[3] = "$IHo(rIKn%jI^big\005Ohid\f\034u,h\bQb-&\035S'k";
        as[4] = "$IUtiu\031Yd `\000Ycig\032\034fih\fK'*j\bOtih\bQbid\034H' rI_k(u\001Ytiq\000Hoig\007\034b1o\032Hn'aI_k(u\032\034s!g\035\034o(uIRh=&\013Yb'&\006Lb'c\r\022";
        as[5] = "$I^r=&\035Tn:&\036Uk%&\033Yt<j\035\034n'&\b\034d%g\032T'>o\035T',~\nPr-c\r";
        as[6] = "&\007Yp";
        as[7] = "$IHo(rITf:&\013Yb'&\033Yi(k\fX'=iI\036";
        as[8] = "&\nPf:uI\036";
        as[9] = "E\005]t:&K";
        as[10] = "$I^r=&\035Tn:&\036Uk%&\033Yt<j\035\034n'&\b\034d%g\032T'>o\035T'9g\nWf.cI\036";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        z = as;
    }
}